package com.xncoding.design.ShiPeiQi.demo01;

public class Adapter implements Taget {
    private AdapterA adapterA = new AdapterA();
    private AdapterB adapterB = new AdapterB();

    @Override
    public void play(String flage) {
        if ("a".equals(flage)){
            adapterA.play();
        }else if("b".equals(flage)){
            adapterB.play();
        }
    }
}
